<?php
namespace app\home\controller;
use think\Controller;
use think\Request;
use think\Db;
class base extends Controller 
{
	
   public function __construct()
    {
        parent::__construct();
        $this->checkLogin();
    }
    public function checkLogin()
    {
        $user_info=session('user_info');
        if(empty($user_info))
        {
            $this->error('请先登录☺','index.php/home/login/login');
        }

    }

    
}
